package com.gy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gy.entity.result.Notification;
import com.gy.vo.NoticeVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NoticeMapper extends BaseMapper<Notification> {
    @Select("SELECT * FROM sys_notice ORDER BY notice_id DESC LIMIT 3")
    List<NoticeVO> findLatestNotices();


}
